<template>
    <div>
        <el-button @click="getData">点击</el-button>


        <el-button @click="see">see</el-button>


    </div>
</template>

<script>
import { mapState } from 'vuex'
import utils from '@/utils'
export default {
    data(){
        return {

        }
    },
    computed:{
        ...mapState(['domain', 'lists'])
    },
    methods: {
        getData(){


            this.$store.dispatch('ajax_server', {
                url: '/seed/print/getPrintList',
                params: {
                    warehouseId: 111,
                    pageNo: 1,
                    pageSize: 20
                }
            }).then(res => {
                console.log(res.data)
            }).catch(res => {
                console.log(2222)
            })


        },
        see(){
            console.log(this.domain)
        }
    },
    mounted(){

    }
}
</script>
